builder-tool: Replace GtkStack:homogeneous
authorMatthias Clasen <mclasen@redhat.com>
Tue, 28 Apr 2020 23:59:13 +0000 (19:59 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 29 Apr 2020 00:00:51 +0000 (20:00 -0400)
Replace this property by h/vhomogeneous.

Add a test.

gtk/tools/gtk-builder-tool-simplify.c
testsuite/tools/simplify-data-3to4/stack.expected
testsuite/tools/simplify-data-3to4/stack.ui

index 5dc2464cc2b02a2f632fc5dd57ffe8046d700fb3..06a31fb2b9288ffd52ea8e16cfe3d5aafd19c20d 100644 (file)
@@ -732,7 +732,8 @@ maybe_rename_property (Element *element, MyParserData *data)
     { "GtkWidget", "margin", GTK_TYPE_WIDGET, PROP_KIND_OBJECT, "margin-bottom", { "margin-start", "margin-end", "margin-top" } },
     { "GtkWidget", "margin-left", GTK_TYPE_WIDGET, PROP_KIND_OBJECT, "margin-start", { NULL, NULL, NULL } },
     { "GtkWidget", "margin-right", GTK_TYPE_WIDGET, PROP_KIND_OBJECT, "margin-end", { NULL, NULL, NULL } },
-    { "GtkHeaderBar", "show-close-button", GTK_TYPE_HEADER_BAR, PROP_KIND_OBJECT, "show-title-buttons", { NULL, NULL, NULL } }
+    { "GtkHeaderBar", "show-close-button", GTK_TYPE_HEADER_BAR, PROP_KIND_OBJECT, "show-title-buttons", { NULL, NULL, NULL } },
+    { "GtkStack", "homogeneous", GTK_TYPE_STACK, PROP_KIND_OBJECT, "hhomogeneous", { "vhomogeneous", NULL, NULL } }
   };
   int i, k, l;
   PropKind kind;
index 5bf7f7002415ad756b0c4525515179089c96cb35..1c5c0beb56404e2aa5175cf760e585d99c5a1e7f 100644 (file)
@@ -10,6 +10,8 @@
         </child>
         <child>
           <object class="GtkStack" id="stack1">
+            <property name="vhomogeneous">0</property>
+            <property name="hhomogeneous">0</property>
             <child>
               <object class="GtkStackPage">
                 <property name="name">page1</property>
index 090100f26d29a9bc4cece6988d4629181cd64a3e..e3133911ca411e9e341b820c47f55750b75fa377 100644 (file)
@@ -14,6 +14,7 @@
         <child>
           <object class="GtkStack" id="stack1">
             <property name="visible">True</property>
+            <property name="homogeneous">0</property>
             <child>
               <object class="GtkButton" id="page1">
                 <property name="label" translatable="yes">Yes</property>